import { getUser, getToken } from '@/utils/auth'

const getters = {
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  device: state => state.app.device,
  token: state => state.user.token || getToken(),
  user: state => state.user.data || getUser(),

}
export default getters
